package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Qxxx generated by hbm2java
 */
@Entity
@Table(name = "qxxx")
public class Qxxx implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String jbh;
    private BigDecimal je;
    private int bs;
    private String qxsj;
    private String bz;
    private Short xh;

    public Qxxx()
    {
    }

    public Qxxx( Long id, String jbh, BigDecimal je, int bs )
    {
        this.id = id;
        this.jbh = jbh;
        this.je = je;
        this.bs = bs;
    }

    public Qxxx( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 String jbh,
                 BigDecimal je,
                 int bs,
                 String qxsj,
                 String bz,
                 Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.jbh = jbh;
        this.je = je;
        this.bs = bs;
        this.qxsj = qxsj;
        this.bz = bz;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "jbh", nullable = false, length = 100)
    public String getJbh()
    {
        return this.jbh;
    }

    public void setJbh( String jbh )
    {
        this.jbh = jbh;
    }

    @Column(name = "je", nullable = false, precision = 18)
    public BigDecimal getJe()
    {
        return this.je;
    }

    public void setJe( BigDecimal je )
    {
        this.je = je;
    }

    @Column(name = "bs", nullable = false)
    public int getBs()
    {
        return this.bs;
    }

    public void setBs( int bs )
    {
        this.bs = bs;
    }

    @Column(name = "qxsj", length = 50)
    public String getQxsj()
    {
        return this.qxsj;
    }

    public void setQxsj( String qxsj )
    {
        this.qxsj = qxsj;
    }

    @Column(name = "bz", length = 100)
    public String getBz()
    {
        return this.bz;
    }

    public void setBz( String bz )
    {
        this.bz = bz;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
